from my_package import my_diary

# 打开文件
with open('test1.txt', mode='a', encoding='utf-8') as f:
    # 写入文件
    f.write('hello\n')
    a = ['a', 'bv\n', 'c']
    f.writelines(a)

my_diary.my_diary()